/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const tableRouter = {
  path: '/table',
  component: Layout,
  redirect: '/table/namespace',
  name: 'Kubernetes',
  meta: {
    title: 'Kubernetes',
    icon: 'table'
  },
  children: [
    {
      path: 'cluster',
      component: () => import('@/views/table/cluster'),
      name: 'cluster',
      meta: { title: 'Cluster' }
    },
    {
      path: 'namespace',
      component: () => import('@/views/table/namespace'),
      name: 'NameSpace',
      meta: { title: 'NameSpace' }
    },
    {
      path: 'pod',
      component: () => import('@/views/table/pod'),
      name: 'Pod',
      meta: { title: 'Pod' }
    },
    {
      path: 'deploy',
      component: () => import('@/views/table/deployments'),
      name: 'Deploy',
      meta: { title: 'Deploy' }
    },
    {
      path: 'service',
      component: () => import('@/views/table/service'),
      name: 'Service',
      meta: { title: 'Service' }
    },
    {
      path: 'cronjob',
      component: () => import('@/views/table/cronjob'),
      name: 'Cronjob',
      meta: { title: 'Cronjob' }
    },
    {
      path: 'daemonsets',
      component: () => import('@/views/table/daemonsets'),
      name: 'Daemonsets',
      meta: { title: 'Daemonsets' }
    },
    {
      path: 'jobs',
      component: () => import('@/views/table/jobs'),
      name: 'Jobs',
      meta: { title: 'Jobs' }
    }
  ]
}
export default tableRouter
